package com.pdd.dao;

import com.pdd.beans.Address;
import com.pdd.beans.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 地址接口
 */
public interface AddressMapper {

    /**
     * 添加地址信息
     * @param address
     * @return
     */
    public int insertAddress(Address address);

    /**
     * 删除地址信息
     * @return
     */
    public int deleteAddress(@Param("id") int id);

    /**
     * 修改地址信息
     * @param address
     * @return
     */
    public int updateAddress(Address address);

    /**
     * 查询所有地址信息
     * @return
     */
    public List<Address> selectAddress();

    /**
     * 根据ID查询地址信息
     * @return
     */
    public Address selectById(int u_id);

}
